package com.woniuxy.microaftersaleserver.openFegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 针对某一个微服务提供的Feign接口
 * name = "micro-base-server" 被调用方的spring.application.name的名称
 */
@FeignClient(name = "micro-user-server")
public interface MicroUserServerFeign {

    @GetMapping(value = "/user/get",produces = MediaType.APPLICATION_JSON_VALUE)
    String findOneById(@RequestParam("id") Long goodsId);

}